import Vue from 'vue'

Vue.directive('color', {
  /**
   * 
   * @param {*} el 挂载的dom
   * @param {*} binding 传入的参数对象
   */
  inserted: function (el, binding) { // 业务逻辑
    el.style.color = binding.value
  }
})